{template header}
<style type="text/css">
    .table-striped td,
    .table-striped th { text-align: center;}
    .table-striped td:nth-child(2) { min-width:100px; max-width: 350px;}
</style>
<a class="btn btn-large btn-link" type="button" href="index.php?c=admin&a=activityInfo">添加活动</a>
<div class="container-fluid">
  <table class="table table-striped">
        <thead>
            <tr>
                <th >图</th>
                <th>标题</th>
                <th>状态</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>参与人数</th>
                <th>可见</th>
                <th>编辑</th>
            </tr>
        </thead>
        <tbody>
            {loop $activityList $k $v}
            <tr id="{$v['act_id']}">
                <td><img width="100" src="{$v['img']}" /></td>
                <td>{$v['title']}</td>
                <td>{if $v['status'] == 0}未开始{elseif $v['status'] == 1}进行中{else}已结束{/if}</td>
                <td>{eval echo date("Y-m-d H:i:s", $v['start_time'])}</td>
                <td>{eval echo date("Y-m-d H:i:s", $v['end_time'])}</td>
                <td>{eval echo $v['joins']+$v['uv']}</td>
                <td>{if $v['is_show'] == 1}<i class="icon-ok"></i>{else}<i class="icon-remove"></i>{/if}</td>
                <td>
                    <a class="btn btn-edit" href="?c=admin&a=activityInfo&action=edit&act_id=$v['act_id']">编辑</a>
                    <a class="btn btn-edit" href="?c=admin&a=activityInfo&action=del&act_id=$v['act_id']">删除（无用）</a>
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>

<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}